<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Reset Password</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='css/reset_password.css') }}">
</head>
<body>
    <div class="container">
        <h2>重置密码</h2>
        <form id="resetPasswordForm" action="/forgot_password" method="post">
            <div class="form-group">
                <label for="username">用户名</label>
                <input type="text" id="username" name="username" placeholder="请输入您的用户名" required>
            </div>
            <div class="form-group">
                <label for="email">电子邮件地址</label>
                <input type="email" id="email" name="email" placeholder="请输入你的电子邮件地址" required>
            </div>
            <button type="button" id="sendCodeBtn" onclick="sendVerificationCode()">发送验证码</button>
            <div class="form-group">
                <label for="verification_code">验证码</label>
                <input type="text" id="verification_code" name="verification_code" placeholder="请输入验证码" required>
            </div>
            <div class="form-group">
                <label for="new_password">新密码</label>
                <input type="password" id="new_password" name="new_password" placeholder="请输入新密码" required>
            </div>
            <button type="submit">重置密码</button>
        </form>
        <p id="message"></p>
    </div>
    <script src="{{ url_for('static', filename='js/reset_password.js') }}"></script>
</body>
</html>
